package com.tmc.bean.inthotel;

import java.io.Serializable;
import java.util.List;

import com.tourico.schemas.webservices.hotelv3.Hotel;

public class HotelBaseInfo implements Serializable {
	
	private Integer hotelId;
	private String thumbnail;
	private String hotelName;
	private String hotelNameCN;
	private String hotelStar;
	private Double minPublishPrice;
	private String hotelResouce;
	private String locationCN;
	private List<Hotel> hotels;
	
	public String getThumbnail() {
		return thumbnail;
	}
	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}
	public String getHotelName() {
		return hotelName;
	}
	public void setHotelName(String hotelName) {
		this.hotelName = hotelName;
	}
	public String getHotelStar() {
		return hotelStar;
	}
	public void setHotelStar(String hotelStar) {
		this.hotelStar = hotelStar;
	}
	public Double getMinPublishPrice() {
		return minPublishPrice;
	}
	public void setMinPublishPrice(Double minPublishPrice) {
		this.minPublishPrice = minPublishPrice;
	}
	public String getHotelResouce() {
		return hotelResouce;
	}
	public void setHotelResouce(String hotelResouce) {
		this.hotelResouce = hotelResouce;
	}
	public Integer getHotelId() {
		return hotelId;
	}
	public void setHotelId(Integer hotelId) {
		this.hotelId = hotelId;
	}
	public String getHotelNameCN() {
		return hotelNameCN;
	}
	public void setHotelNameCN(String hotelNameCN) {
		this.hotelNameCN = hotelNameCN;
	}
	public String getLocationCN() {
		return locationCN;
	}
	public void setLocationCN(String locationCN) {
		this.locationCN = locationCN;
	}
	public List<Hotel> getHotels() {
		return hotels;
	}
	public void setHotels(List<Hotel> hotels) {
		this.hotels = hotels;
	}
	
	@Override
	public boolean equals(Object obj) {
	    if (obj instanceof HotelBaseInfo) {
	    	HotelBaseInfo h = (HotelBaseInfo) obj;
	        return this.hotelName.toUpperCase().indexOf(h.getHotelName().toUpperCase())>-1;
	    }
	    return false;
    }
}
